From 5675d585f40adc407f7f0f56289654dc785b4610 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 29 May 2019 15:05:06 +0000 Subject: [PATCH] testgtk: Fix a crash Somebody forgot to update the signal handler here when changing the size-allocate signal. --- tests/testgtk.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/testgtk.c b/tests/testgtk.c index 7f0e6a0e8d..20b3ba3d24 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -5219,15 +5219,16 @@ create_surface_states (GtkWidget *widget) */ static void -size_allocate_callback (GtkWidget *widget, - GtkAllocation *allocation, - int baseline, - gpointer data) +size_allocate_callback (GtkWidget *widget, + int width, + int height, + int baseline, + gpointer data) { GtkWidget *label = data; gchar *msg; - msg = g_strdup_printf ("size: %d x %d\n", allocation->width, allocation->height); + msg = g_strdup_printf ("size: %d x %d\n", width, height); gtk_label_set_text (GTK_LABEL (label), msg); -- 2.30.2